import request from '@/utils/request'

// 查询设备调用表列表
export function listEquipemnt_use(query) {
  return request({
    url: '/hospital/equipemnt_use/list',
    method: 'get',
    params: query
  })
}

export function listEquipemnt_useYAN(query) {
  return request({
    url: '/hospital/equipemnt_use/listyan',
    method: 'get',
    params: query
  })
}
// 查询设备调用表详细
export function getEquipemnt_use(equipmentuseId) {
  return request({
    url: '/hospital/equipemnt_use/' + equipmentuseId,
    method: 'get'
  })
}

// 新增设备调用表
export function addEquipemnt_use(data) {
  return request({
    url: '/hospital/equipemnt_use',
    method: 'post',
    data: data
  })
}

// 修改设备调用表
export function updateEquipemnt_use(data) {
  return request({
    url: '/hospital/equipemnt_use',
    method: 'put',
    data: data
  })
}

// 删除设备调用表
export function delEquipemnt_use(equipmentuseId) {
  return request({
    url: '/hospital/equipemnt_use/' + equipmentuseId,
    method: 'delete'
  })
}
